package com.kmgames.ballsinholes;

import com.badlogic.gdx.ApplicationListener;
import com.kmgames.ballsengine.models.ModelLoader;
import com.kmgames.ballsengine.rendering.ClassicRenderer;
import com.kmgames.ballsengine.scene.Scene;
import com.kmgames.ballsinholes.scene.BallsInHolesScene;

public class BallsInHoles implements ApplicationListener {
	private Scene scene;

	@Override
	public void create() {
		if (scene == null) {
			scene = new BallsInHolesScene(new ClassicRenderer());
		}
	}

	@Override
	public void dispose() {
		ModelLoader.dispose();
		scene.dispose();
		scene = null;
	}

	@Override
	public void pause() {
	}

	@Override
	public void render() {
		scene.render();
	}

	@Override
	public void resize(int width, int height) {
		scene.updateCamera(width, height);
	}

	@Override
	public void resume() {
	}
}
